package cn.itsource.rpms.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Opt extends BaseDomain {
    private String opt_name;
    private Integer age;
    private String email;
    private Date hire_date = new Date();

    public String getOpt_name() {
        return opt_name;
    }

    public void setOpt_name(String opt_name) {
        this.opt_name = opt_name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    public Date getHire_date() {
        return hire_date;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd")
    public void setHire_date(Date hire_date) {
        this.hire_date = hire_date;
    }
}
